//
//  DWUserManager.swift
//  DWater-Swift
//
//  Created by mac on 2017/4/18.
//  Copyright © 2017年 Dimon.胡亚宾. All rights reserved.
//

import UIKit

final class DWUserManager: NSObject {
    //单例模式。
    var userInfo : DWUserInfo?
    static var shared: DWUserManager {
        struct Static {
            static let instance: DWUserManager = DWUserManager()
        }
        
        return Static.instance
    }
    
    private override init() {
        super.init()
        self.userInfo = DWUserInfo.getFromLocalFile()
    }
}
